const https = require('../utils/https');
const userConfig = require('../../userConfig.json');

const getBlogDetail = (mblogid = 'HprW7FRxL') => {
  const data = {
    id: mblogid
  };
  return https({
    url: '/longtext',
    method: 'get',
    data
  });
};

const getBlogList = page => {
  const data = {
    uid: userConfig.uid,
    feature: 0,
    page
  };
  return https({
    url: '/mymblog',
    method: 'get',
    data
  });
};

module.exports = {
  getBlogDetail,
  getBlogList
};
